<template>
	<view style="height: 100vh;position: relative;" class="theme_bg_vice_color">
		<z-paging ref="paging" v-model="dataList" @query="queryList" use-page-scroll>
			<view slot="top" class="theme_bg_color">
				<cu-custom id="nav" :isBack="true"  :backColor="'text-black'">
					<block slot="backText">
						<view class="text-black ">
							优质商家
						</view>
					</block>
				</cu-custom>
				<!-- <view id="head" class="" style="background-color: #080808;color: #fff;font-size: 26rpx;">
					<van-search :value="value" shape="round" background="#080808" placeholder="输入商家名,快速找到哈" />
				</view> -->
			</view>
			<view class="grarg" >
				<view class="cu-card">
					<view @click="$goPage('../../pageB/business/info?id='+item.id)" class="cu-item shadow padding-sm theme_bg_color"
						style="position: relative;" v-for="(item,index) in dataList"
						:key="index" >
						<!-- <image src="../../static/icon/zd.png" class="zd" mode=""></image> -->
						<view class="flex justify-start">
							<image :src="$isHttp(item.picture)" style="width: 160rpx;height: 160rpx;border-radius: 10rpx;"
								mode="aspectFill"></image>
							<view class=" margin-left-sm" style="width: 520rpx;">
								<view class="flex justify-start margin-top-xs">
									<view class="text-bold text-lg text-black">{{item.storeName}}</view>
									<!-- <view class="cu-tag bg-yellow  sm round margin-left-sm">标签666</view> -->
								</view>
								<view class="margin-top-sm text-gray text-sm">
									{{item.region}}{{item.address}}
								</view>
								<view class="margin-top-sm flex justify-between" style="color: #b2b1b6;">
									<view class="text-sm solid round">共上架<text class="text-green">{{item.playCount}}</text>个剧本</view>
									<!-- <view class="sm text-white">13.9km</view> -->
									<view class="sm text-black">{{item.region}}</view>
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</z-paging>
	</view>
</template>

<script>
	import ZPagingMixin from '@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin'
	export default {
		//注意这一步不要漏掉，必须注册mixins(如果全局引入了，就不要这一步，全局引入示例见main.js)
		mixins: [ZPagingMixin],
		data() {
			return {
				value: '',
				dataList: [],

				color: '#292929',
				hasChoose: false,

			};
		},
		created() {

		},
		methods: {
			queryList(pageNo, pageSize) {
				//组件加载时会自动触发此方法，因此默认页面加载时会自动触发，无需手动调用
				//这里的pageNo和pageSize会自动计算好，直接传给服务器即可
				//模拟请求服务器获取分页数据，请替换成自己的网络请求
				this.$u.api.getQualityStore({
					page: pageNo ? pageNo : 1,
					number: pageSize ? pageSize : 10,
					city: this.vuex_city,
				}).then(res => {
					this.$refs.paging.complete(res.data);
				})
			},
		},

	}
</script>

<style lang="scss" scoped>
	.zd {
		position: absolute;
		top: 0;
		left: 0;
		width: 60rpx;
		height: 55rpx;
		z-index: 1;
	}

	// .grarg {
	// 	position: absolute;
	// 	top: 225rpx;
	// 	bottom: 100rpx;
	// }

	.box_whbrc {
		width: 90rpx;
		height: 60rpx;
		border-radius: 30rpx;
		// background-color: #cfa526;
		margin-right: 20rpx;
		text-align: center;
		line-height: 60rpx;
	}

	.bgc_cfa526 {
		background-color: #cfa526;
	}

	.scroll-view_H {
		white-space: nowrap;
		width: 100%;
	}

	.scroll-view-item_H {
		display: inline-block;
	}
</style>
